package com.sinocare.project.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户连锁药店关系表(SccUserStore)表实体类
 *
 * @author makejava
 * @since 2021-12-20 19:09:03
 */
@Data
@SuppressWarnings("serial")
@TableName(value = "scc_user_store")
public class SccUserStore extends Model<SccUserStore> {
    //主键、序号
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //用户id
    private Integer userId;
    //连锁药店id
    private Integer storeId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

